/*
 * File: Fu_HallSensCalc.h
 *
 * Code generated for Simulink model 'Fu_HallSensCalc'.
 *
 * Model version                  : 1.715
 * Simulink Coder version         : 8.2 (R2012a) 29-Dec-2011
 * TLC version                    : 8.2 (Dec 29 2011)
 * C/C++ source code generated on : Sun Jun 16 12:53:08 2013
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: ARM Compatible->ARM Cortex
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_Fu_HallSensCalc_h_
#define RTW_HEADER_Fu_HallSensCalc_h_
#ifndef Fu_HallSensCalc_COMMON_INCLUDES_
# define Fu_HallSensCalc_COMMON_INCLUDES_
#include <stddef.h>
#include <string.h>
#include "rtwtypes.h"
#endif                                 /* Fu_HallSensCalc_COMMON_INCLUDES_ */

#include "Fu_HallSensCalc_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
# define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
# define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
#endif

/* Block signals (auto storage) */
typedef struct {
  boolean_T PlausTogBit;               /* '<S1>/Fu_HallSensCalc_Plaus' */
} BlockIO_Fu_HallSensCalc;

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  uint32_T HallTickOld[7];             /* '<S1>/Fu_HallSensCalc_SysTick' */
  uint8_T is_active_c2_Fu_HallSensCalc;/* '<S1>/Fu_HallSensCalc_Plaus' */
  uint8_T is_c2_Fu_HallSensCalc;       /* '<S1>/Fu_HallSensCalc_Plaus' */
  uint8_T StHardware[6];               /* '<S1>/Fu_HallSensCalc_Plaus' */
} D_Work_Fu_HallSensCalc;

/* Zero-crossing (trigger) state */
typedef struct {
  ZCSigState Fu_HallSensCalc_SysTick_Trig_ZC;/* '<S1>/Fu_HallSensCalc_SysTick' */
} PrevZCSigStates_Fu_HallSensCalc;

/* Real-time Model Data Structure */
struct RT_MODEL_Fu_HallSensCalc {
  const char_T * volatile errorStatus;
};

/* Block signals (auto storage) */
extern BlockIO_Fu_HallSensCalc Fu_HallSensCalc_B;

/* Block states (auto storage) */
extern D_Work_Fu_HallSensCalc Fu_HallSensCalc_DWork;

/*
 * Exported Global Signals
 *
 * Note: Exported global signals are block signals with an exported global
 * storage class designation.  Code generation will declare the memory for
 * these signals and export their symbols.
 *
 */
extern uint32_T HallCalc_TickDifAry[7];/* '<S1>/Fu_HallSensCalc_SysTick' */
extern uint8_T HallCalc_Index;         /* '<S1>/Bitwise Operator1' */
extern uint8_T HallCalc_IndexPlaus;    /* '<S1>/Fu_HallSensCalc_Plaus' */

/* Model entry point functions */
extern void Fu_HallSensCalc_initialize(void);
extern void Fu_HallSensCalc_step(void);

/* Real-time Model object */
extern struct RT_MODEL_Fu_HallSensCalc *const Fu_HallSensCalc_M;

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'Fu_HallSensCalc'
 * '<S1>'   : 'Fu_HallSensCalc/Fu_HallSensCalc'
 * '<S2>'   : 'Fu_HallSensCalc/Fu_HallSensCalc/Fu_HallSensCalc_Plaus'
 * '<S3>'   : 'Fu_HallSensCalc/Fu_HallSensCalc/Fu_HallSensCalc_SysTick'
 */
#endif                                 /* RTW_HEADER_Fu_HallSensCalc_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
